@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="id" value="${item.id}">

            <div class="row">
                <div class="col-sm-6 b-r">
				            <#input id="revDate" name="统计时间" pattern="YYYY-MM-DD" value="${item.revDate}" />
							<#dictSelector  id="type" name ="type" code="CE_type"  label="收支类型" value="${item.type}"   onchange="CashExpenditureInfoDlg.getSelect(this)"   />

                            <div class="form-group" id="customerdiv" style="display:none;">
                                <label class="col-sm-3 control-label">往来客户</label>
                                <div class="col-sm-9">
                                    <select id="customer" name="customer" class="form-control" style="width:248px" >
                                        @for(var customer in Customerinfos ){
                                        <option value="${customer.customercode}">${customer.customername}</option>
                                        @}
                                    </select>
                                </div>
                            </div>
                    <#input id="money" name="收支金额" value="${item.money}" />


                </div>

                <div class="col-sm-6">
                            <#input id="note" name="摘要" value="${item.note}" />
                            <#dictSelector  id="detailsType" name ="detailsType" code="Details_type"  label="收支归类" value="1" onchange="RmbCashReceiptsInfoDlg.getSelectDetails(this)"   />
                            <div class="form-group">
                                <label class="col-sm-3 control-label">收支明细</label>
                                <div class="col-sm-9">
                                    <select id="detailsId" name="detailsId" class="form-control" style="width:248px" onchange="CashExpenditureInfoDlg.getChange(this)" onmousedown="CashExpenditureInfoDlg.getSelect(this)"  >
                                        @for(var details in Details ){
                                        @if(details.id==item.detailsId){
                                        <option value="${details.id}" valueType="${details.type}">${details.name}</option>
                                        @}else{
                                        <option value="${details.id}" valueType="${details.type}">${details.name}</option>
                                        @}
                                        @}
                                    </select>
                                </div>
                            </div>


                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="CashExpenditureInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="CashExpenditureInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/cash/cashExpenditure/cashExpenditure_info.js"></script>
@}
